import com.edu.pojo.Activitie;
import com.edu.pojo.users;
import com.edu.service.ActivitieServiceImpl;
import com.edu.service.userserviceImpl;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ActivitieText {
    @Test
    public void text(){
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        ActivitieServiceImpl activitieServiceImpl = (ActivitieServiceImpl) context.getBean("activitieServiceImpl");
        for (Activitie activitie : activitieServiceImpl.queryAllActivitie()) {
            System.out.println(activitie);
        }
    }
}
